package qf.api.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import qf.api.config.FeignConfig;
import qf.common.core.web.vo.AjaxResult;

/**
 * @Title: MyBatisFeignService
 * @Author itmei
 * @Package qf.api.service.mybatis
 * @Date 2023/2/22 22:57
 * @description:
 */
@Component
// 服务提供者的服务名称
@FeignClient(value = "${qf.openFeign.qfModules.qfMybatis}",path = "",configuration = FeignConfig.class)
public interface MyBatisFeignService {

    @RequestMapping(value = "/mybatis/api//v1/test",method = RequestMethod.GET)
    public AjaxResult myBatisTest();

    @RequestMapping(value = "/mybatis/api/v2/test",method = RequestMethod.POST)
    public AjaxResult saveBatisTest(@RequestBody Object object);

    @RequestMapping(value = "/redis/api/v1/test",method = RequestMethod.GET)
    public AjaxResult myRedisTest(@RequestParam(value = "key") String key);


}
